
/**
 */
function initEchartsGGZBDB(id, data) {
	var option = {
	  tooltip: {
		    trigger: 'axis',
		    axisPointer: {
		      type: 'shadow'
		    }
		  },
		  legend: {
		    data: ['近七天', '上七天']
		  },
		  grid: {
		    left: '3%',
		    right: '4%',
		    bottom: '3%',
		    containLabel: true
		  },
		  xAxis: [
		    {
		      type: 'value'
		    }
		  ],
		  yAxis: [
		    {
		      type: 'category',
		      axisTick: {
		        show: false
		      },
		      data: ['CPC', 'ACOS', '广告销售数量', '广告销售额', '广告花费']
		    }
		  ],
		  series: [
		    {
		      name: '近七天',
		      type: 'bar',
		      stack: 'Total',
		      label: {
		        show: true,
		        position: 'left'
		      },
		      emphasis: {
		        focus: 'series'
		      },
		      data: data.latest
		    },
		    {
			    name: '上七天',
		        type: 'bar',
		        stack: 'Total',
		        label: {
		          show: true
		        },
		        emphasis: {
		          focus: 'series'
		        },
		        data: data.before
		      }
		  ]
		};
	echarts.init(document.getElementById(id)).setOption(option);
}